﻿using KDS.Mes.Mes.Retrospects;
using KDS.Mes.Mes.Retrospects.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace KDS.Mes.Web.Controllers
{
    public class RetrospectsController : MesControllerBase
    {
        private readonly IRetrospectAppService _retrospectAppService;

        public RetrospectsController(IRetrospectAppService retrospectAppService)
        {
            _retrospectAppService = retrospectAppService;

        }
        // GET: Retrospects
        public ActionResult Index()
        {
            return View();
        }

        [HttpPost]
        public JsonResult GetRetrospect(GetRetrospectInput input)
        {
            var newObj = _retrospectAppService.GetRetrospect(input);
            return Json(newObj, JsonRequestBehavior.AllowGet);
        }
    }
}